library ieee;
use ieee.std_logic_1164.all;

use ieee.numeric_std.all;

package top_pkg is

    component top is
        generic (
            CYCLES_SEC : integer := 100e6; -- 1/10ns
            LED_LOW : integer := 0;
            LED_HIGH : integer := 15;
            SEG_LOW : integer := 0;
            SEG_HIGH : integer := 3;
            SEG_MIN : integer := 0;
            SEG_MAX : integer := 6
        );
        port (
            -- general control signals
            clk : in std_logic;
            res : in std_logic;
            -- led controller signals
            led : out std_logic_vector(LED_HIGH downto LED_LOW);
            -- ssd controller signals
            seg_n : out std_logic_vector(SEG_MAX downto SEG_MIN);
            dp_n : out std_logic;
            an_n : out std_logic_vector(SEG_HIGH downto SEG_LOW)
        );
    end component;

end package;
